package com.hcyy.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hcyy.entity.CustOrder;
import com.hcyy.entity.CustOrderLog;

public interface CustOrderDao {
	public void insertOrder(CustOrder order);
	public void insertOrderLog(CustOrderLog log);
	public String findOrderLastSid(@Param("dwbh")String dwbh,@Param("sjid")Integer sjid);
	public CustOrder findOrderBySid(@Param("sid")String sid,@Param("dwbh")String dwbh);
	public List<CustOrder> findOrderByDwbh(@Param("dwbh")String dwbh,@Param("sjid")Integer sjid,@Param("num1")byte num1,@Param("num2")byte num2);
	public List<CustOrder> findAllOrders(@Param("dwbh")String dwbh,@Param("sjid")Integer sjid);
	public int cancelOrderBySid(@Param("sid")String sid,@Param("dwbh")String dwbh);
//	public int paySuccess(@Param("sid")String sid);
	public Integer paySuccess(Map param);
	public int updateOrder(@Param("sid")String sid, @Param("FQty")int FQty, @Param("FAmount")double FAmount);
	public void deleteOrder(String sid);
	int updateTpOrder(String sid);
}
